<extend name="Public/base" />
<block name="body">
	<div class="row">
		<div class="col-md-12">
			<div class="note note-success">
				<h4 class="block">欢迎您，{$_SESSION['username']}！</h4>
				<p> 您的上次登录时间：{$_SESSION['user']['last_login_time']|date='Y-m-d H:i:s',###} </p>
				<p> 您的上次登陆地点： 
					<?php 
					    $Ip = new \Org\Net\IpLocation('UTFWry.dat'); 
                        $area = $Ip->getlocation($_SESSION['user']['last_login_ip']);
					?>
					{$area['country']} {$area['area']} {$_SESSION['user']['last_login_ip']}
				</p>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<div class="portlet box green">
				<div class="portlet-title">
					<div class="caption"><i class="icon-cogs"></i>系统信息</div>
					<div class="tools">
						<a href="javascript:;" class="collapse"></a>
						<a href="#portlet-config" data-toggle="modal" class="config"></a>
						<a href="javascript:;" class="reload"></a>
						<a href="javascript:;" class="remove"></a>
					</div>
				</div>
				<div class="portlet-body flip-scroll">
					<table class="table table-bordered table-striped table-condensed flip-content">
						<thead class="flip-content">
							<tr>
								<th class="numeric">服务器操作系统</th>
								<th class="numeric">开发框架</th>
								<th class="numeric">运行环境</th>
								<th class="numeric">上传限制</th>
								<th class="numeric">MYSQL版本</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td class="numeric">{$Think.const.PHP_OS}</td>
								<td class="numeric">{$Think.VERSION}</td>
								<td class="numeric">{$_SERVER['SERVER_SOFTWARE']}</td>
								<td class="numeric">{:ini_get('upload_max_filesize')}</td>
								<td class="numeric">
									<php>
										$system_info_mysql = M()->query("select version() as v;");
									</php>
									{$system_info_mysql[0]['v']}
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</block>
